<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
</body>
<script>
  let sanlun = {
    name: "三轮车"
  }
  // sanlun.brand = '金娃'
  // console.log(sanlun)

  Object.defineProperties(sanlun, {
    brand: {
      value: '牛娃'
    },
    price: {
      set(){

      },
      get(){
        return 123
      }
    }
  })

  console.log(sanlun)
  console.log(sanlun.price)
</script>
</html>